package com.kelvin.paopao.injector.modules;

import com.kelvin.paopao.injector.PerActivity;
import com.kelvin.paopao.module.main.date.publish.eat.IPublishEatPresenter;
import com.kelvin.paopao.module.main.date.publish.eat.PublicEatActivity;
import com.kelvin.paopao.module.main.date.publish.eat.PublishEatPresenter;
import com.kelvin.paopao.module.main.date.publish.movie.IPublishMoivePresenter;
import com.kelvin.paopao.module.main.date.publish.movie.PublishMovieActivity;
import com.kelvin.paopao.module.main.date.publish.movie.PublishMoviePresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by Administrator on 2017/5/14.
 */

@Module
public class PublishMovieModule {
    private PublishMovieActivity mView;

    public PublishMovieModule(PublishMovieActivity view) {
        this.mView = view;
    }

    @PerActivity
    @Provides
    public IPublishMoivePresenter providePresenter() {
        return new PublishMoviePresenter(mView);
    }
}
